import request from '@/utils/request'

export function getOneTypeList(searchData) {
  return request({
    url: '/oneType/list',
    method: 'post',
    data: searchData
  });
}

export function deleteOneType(id) {
  return request({
    url: '/oneType/delete',
    method: 'get',
    params: {"id": id}
  });
}

export function addOneType(searchData) {
  return request({
    url: '/oneType/add',
    method: 'post',
    data: searchData
  });
}

export function getTwoTypePage(searchData) {
  return request({
    url: '/twoType/list',
    method: 'post',
    data: searchData
  });
}


export function addTwoType(searchData) {
  return request({
    url: '/twoType/add',
    method: 'post',
    data: searchData
  });
}

export function deleteTwoType(id) {
  return request({
    url: '/twoType/delete',
    method: 'get',
    params: {"id": id}
  });
}



